/*
 * User: eldad
 * Date: 19/09/2010 
 *
 * Copyright (2005) IDI. All rights reserved.
 * This software is a proprietary information of Israeli Direct Insurance.
 * Created by IntelliJ IDEA. 
 */
package com.bargate.domain.spring.expression.value;

import org.springframework.beans.factory.annotation.Value;

/**
 *
 */
public class InstanceOfOpeations {

    @Value("#{Hurricane instanceOf T(com.bargate.domain.spring.expression.Storm)}")
    private Boolean isStorm;

    public Boolean getStorm() {
        return isStorm;
    }

    @Value("#{2010 instanceOf T(Integer)}")
    private Boolean isInteger;

    @Value("12 instanceOf #{T(org.springframework.util.NumberUtils).parseNumber('12', T(Integer))}")
    public Boolean getInteger() {
        return isInteger;
    }

    @Value("#{'Michael Jordan' instanceOf T(String)}")
    private Boolean isString;

    public Boolean getString() {
        return isString;
    }

    @Value("#{23 instanceOf T(String)}")
    private Boolean isString2;

    public Boolean getString2() {
        return isString2;
    }
}